|
|
|
|
|
|
|
One feature of Visual Basic taken for granted is the use of form templates in helping create an application interface. Microsoft has created many of the more standard windows forms that you can use in your application, including the following: |
|
|
|
|
|
|
|
|
About. This is the About dialog box displayed from the Help menu. |
|
|
|
|
|
|
|
|
Splash. This is the form that would appear when an application is starting up. |
|
|
|
|
|
|
|
|
Login. If your application requires a user ID and password, this form would provide the skeleton form and code. |
|
|
|
|
|
|
|
|
Options. This form provides you with the starting point of a tabbed dialog form to allow users to select from several different option sets. |
|
|
|
|
|
|
|
|
Tip of the Day. If you want your application to be able to display tips as Microsoft Word can do, this form will provide you with the form and starting code for the process. |
|
|
|
|
|
|
|
|
You can add several other forms to your application from the template display (see Figure 4.26). These same forms are used by the Application Wizard when creating a new project. |
|
|
|
|
|
|
|
|
Figure 4.26.
Adding a form to your application allows you to
choose a blank form or one of the listed precreated
forms. |
|
|
|
|
|
|
|
|
Form templates are nothing more than designed forms with or without code written for it and saved to a specified directory that Visual Basic looks in when you want to add a new form to your application. To add a new form template to this list, you simply copy the form to the FORMS directory. |
|
|
|
|
|